for(let k = 100;k<1000;k++)
    {
        let gewei = k%10
        let shiwei = (Math.floor(k/10))%10
        let baiwei = (Math.floor(k/100))%10
        if (Math.pow(gewei,3)+Math.pow(shiwei,3)+Math.pow(baiwei,3) === k)
            console.log(k)
    }